import request from '@/utils/axios'

export default {
	// 搜索用户
	searchUser: (data) => request({
		url: 'jstx.Chat/searchUser',
		method: 'post',
		data
	}),
	// 转账
	transfer: (data) => request({
		url: 'jstx.Chat/transfer',
		method: 'post',
		data
	}),
	// 延迟转账收款
	receiveDelayTransfer: (data) => request({
		url: 'jstx.Chat/receiveDelayTransfer',
		method: 'post',
		data
	}),
	// 主动退款
	refund: (data) => request({
		url: 'jstx.Chat/refund',
		method: 'post',
		data
	}),

	// 好友列表
	friendAllList: (data) => request({
		url: 'jstx.Chat/friendAllList',
		method: 'post',
		data
	}),
	// 删除好友
	delFriend: (data) => request({
		url: 'jstx.Chat/deleteFriend',
		method: 'post',
		data
	}),
	// 举报好友
	blackFriend: (data) => request({
		url: 'jstx.Chat/blackFriend',
		method: 'post',
		data
	}),
	
	// 申请添加好友
	applyFriend: (data) => request({
		url: 'jstx.Chat/applyFriend',
		method: 'post',
		data
	}),
	// 处理好友申请
	handleFriendApply: (data) => request({
		url: 'jstx.Chat/handleFriendApply',
		method: 'post',
		data
	}),
	// 获取好友申请列表
	friendApplyList: (data) => request({
		url: 'jstx.Chat/friendApplyList',
		method: 'post',
		data
	}),
	// 获取好友申请列表
	friendList: (data) => request({
		url: 'jstx.Chat/friendList',
		method: 'post',
		data
	}),
	// 修改好友权限/备注
	updateFriend: (data) => request({
		url: 'jstx.Chat/updateFriend',
		method: 'post',
		data
	}),

	// 转账详情
	transferDetail: (data) => request({
		url: 'jstx.Chat/transferDetail',
		method: 'post',
		data
	})
}